.class public Lcom/esfile/screen/recorder/utils/t;
.super Ljava/lang/Object;
.source "TimeUtil.java"


# static fields
.field private static a:Ljava/text/DecimalFormat;

.field private static b:Ljava/lang/String;


# direct methods
.method static constructor <clinit>()V
    .locals 0

    return-void
.end method

.method public static a(J)Ljava/lang/String;
    .locals 1

    const/4 v0, 0x0

    .line 14
    invoke-static {p0, p1, v0}, Lcom/esfile/screen/recorder/utils/t;->a(JZ)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static a(JI)Ljava/lang/String;
    .locals 3

    .line 15
    invoke-static {}, Les/c5;->a()Landroid/content/Context;

    move-result-object v0

    invoke-virtual {v0, p2}, Landroid/content/Context;->getString(I)Ljava/lang/String;

    move-result-object p2

    .line 16
    sget-object v0, Lcom/esfile/screen/recorder/utils/t;->b:Ljava/lang/String;

    if-eqz v0, :cond_0

    invoke-static {p2, v0}, Landroid/text/TextUtils;->equals(Ljava/lang/CharSequence;Ljava/lang/CharSequence;)Z

    move-result v0

    if-nez v0, :cond_1

    .line 17
    :cond_0
    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "[formatNumberWithDelimiter] language changed from "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    sget-object v1, Lcom/esfile/screen/recorder/utils/t;->b:Ljava/lang/String;

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    const-string v1, " to "

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0, p2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "TimeUtil"

    invoke-static {v1, v0}, Lcom/esfile/screen/recorder/utils/n;->d(Ljava/lang/String;Ljava/lang/String;)V

    const/4 v0, 0x0

    .line 18
    sput-object v0, Lcom/esfile/screen/recorder/utils/t;->a:Ljava/text/DecimalFormat;

    .line 19
    sput-object p2, Lcom/esfile/screen/recorder/utils/t;->b:Ljava/lang/String;

    .line 20
    :cond_1
    sget-object p2, Lcom/esfile/screen/recorder/utils/t;->a:Ljava/text/DecimalFormat;

    if-nez p2, :cond_2

    .line 21
    new-instance p2, Ljava/text/DecimalFormat;

    new-instance v0, Ljava/text/DecimalFormatSymbols;

    new-instance v1, Ljava/util/Locale;

    sget-object v2, Lcom/esfile/screen/recorder/utils/t;->b:Ljava/lang/String;

    invoke-direct {v1, v2}, Ljava/util/Locale;-><init>(Ljava/lang/String;)V

    invoke-direct {v0, v1}, Ljava/text/DecimalFormatSymbols;-><init>(Ljava/util/Locale;)V

    const-string v1, "#,###"

    invoke-direct {p2, v1, v0}, Ljava/text/DecimalFormat;-><init>(Ljava/lang/String;Ljava/text/DecimalFormatSymbols;)V

    sput-object p2, Lcom/esfile/screen/recorder/utils/t;->a:Ljava/text/DecimalFormat;

    .line 22
    :cond_2
    sget-object p2, Lcom/esfile/screen/recorder/utils/t;->a:Ljava/text/DecimalFormat;

    invoke-virtual {p2, p0, p1}, Ljava/text/DecimalFormat;->format(J)Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method

.method public static a(JZ)Ljava/lang/String;
    .locals 12

    const-wide/32 v0, 0x36ee80

    .line 1
    div-long v0, p0, v0

    const-wide/32 v2, 0xea60

    .line 2
    div-long v2, p0, v2

    const-wide/16 v4, 0x3c

    rem-long/2addr v2, v4

    const-wide/16 v6, 0x3e8

    .line 3
    div-long/2addr p0, v6

    rem-long/2addr p0, v4

    .line 4
    new-instance v4, Ljava/lang/StringBuilder;

    invoke-direct {v4}, Ljava/lang/StringBuilder;-><init>()V

    const/16 v5, 0x3a

    const/16 v6, 0x30

    const-wide/16 v7, 0xa

    const-wide/16 v9, 0x0

    cmp-long v11, v0, v9

    if-gtz v11, :cond_0

    if-eqz p2, :cond_2

    :cond_0
    cmp-long p2, v0, v7

    if-gez p2, :cond_1

    .line 5
    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    .line 6
    :cond_1
    invoke-virtual {v4, v0, v1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    .line 7
    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    :cond_2
    cmp-long p2, v2, v7

    if-gez p2, :cond_3

    .line 8
    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    .line 9
    :cond_3
    invoke-virtual {v4, v2, v3}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    .line 10
    invoke-virtual {v4, v5}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    cmp-long p2, p0, v7

    if-gez p2, :cond_4

    .line 11
    invoke-virtual {v4, v6}, Ljava/lang/StringBuilder;->append(C)Ljava/lang/StringBuilder;

    .line 12
    :cond_4
    invoke-virtual {v4, p0, p1}, Ljava/lang/StringBuilder;->append(J)Ljava/lang/StringBuilder;

    .line 13
    invoke-virtual {v4}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object p0

    return-object p0
.end method
